package com.project.service.impl;

import com.project.bean.CityBean;
import com.project.dao.ICityDao;
import com.project.dao.impl.CityDaoImpl;
import com.project.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CityServiceImpl implements CityService {
    @Autowired
  private  ICityDao dao ;
    @Override
    public List<CityBean> findByCountry(int countryId) {
        System.out.println(dao.findByCountry(1));
        return dao.findByCountry(countryId);
    }

    public static void main(String[] args) {
        CityService service = new CityServiceImpl() ;
        service.findByCountry(1);

    }
}
